From a64d176a1c6c54d8c29cc4320c37d200a308b7ec Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Wed, 7 Dec 2005 10:27:03 +0000 Subject: [PATCH] xm-test report fails because IA64's /cpu/procinfo format is different from x86's. Here's a small patch to fix the problem. Signed-off-by: Matsumoto --- tools/xm-test/lib/XmTestReport/OSReport.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/xm-test/lib/XmTestReport/OSReport.py b/tools/xm-test/lib/XmTestReport/OSReport.py index dff20399e2..c73f9c7821 100644 --- a/tools/xm-test/lib/XmTestReport/OSReport.py +++ b/tools/xm-test/lib/XmTestReport/OSReport.py @@ -102,6 +102,11 @@ class Machine: xen = self.__getXenInfo(xenValues) cpu = self.__getCpuInfo(cpuValues) + if cpu["model_name"] == "Unknown": + cpuValues={"arch" : "Unknown", + "features": "Unknown"} + cpu=self.__getCpuInfo(cpuValues) + for k in xen.keys(): self.values[k] = xen[k] if xen[k] == "Unknown": -- 2.30.2